<?php
class defaultApi extends baseApi{

	//模板通用循环
	public function label_getlist($data)
    {
    	return model('label')->getlist($data);
    }

    //解析变量
    public function label_variable($data)
    {
        return model('label')->label_variable($data);
    }

    //获取tag超链接
    public function label_getturl($name)
    {
        return model('label')->getturl($name);
    }

    //获取表单超链接
    public function label_getfurl($name)
    {
        return model('label')->getfurl($name);
    }

    //图片裁剪
    public function label_getcutout($data)
    {
        return model('label')->getcutout($data['file'],$data['size']);
    }

    //获取数据统计
    public function label_getcount($data)
    {
    	return model('label')->getcount($data);
    }

    //获取栏目导航
    public function category_nav($cid)
    {
        return model('category_common')->nav($cid);
    }

    //获取子栏目ID
    public function category_getcat($cid)
    {
        return model('category_common')->getcat($cid);
    }

    //获取页面公共信息
    public function common_media($data)
    {
        return model('pageinfo')->media($data['title'],$data['keywords'],$data['description']);
    }

    //内容访问计数
    public function content_views($data)
    {
        return model('content_common')->views_content($data['aid'],$data['views']);
    }

    //内容TAG
    public function content_tag_link($data)
    {
        return model('content_common')->tag_link($data['content'],$data['aid']);
    }

    //上一篇
    public function content_prev($data)
    {
        return model('content_common')->prev_content($data['aid'],$data['category']);
    }

    //下一篇
    public function content_next($data)
    {
        return model('content_common')->next_content($data['aid'],$data['category']);
    }
}